package com.yimi.appstore;

import java.util.ArrayList;

import android.app.Application;
import android.content.Context;

import com.yimi.appstore.db.DBAdapter;
import com.yimi.appstore.db.dao.AppInfoEntityManager;
import com.yimi.appstore.db.dao.DownloadRecordEntityManager;
import com.yimi.appstore.download2.DownloadEntity;
import com.yimi.appstore.download2.DownloadJob;

public class YimiApplication extends Application {

	public static int SYS_SDK_VERSION;
	public static ArrayList<DownloadJob> jobList  = new ArrayList<DownloadJob>();
	public static ArrayList<DownloadEntity> downloadHistoryList = new ArrayList<DownloadEntity>();
	public static ArrayList<String> downloadingList = new ArrayList<String>();;
	public static Context context;
	@Override
	public void onCreate() {
		super.onCreate();
		context =this;
		SYS_SDK_VERSION = android.os.Build.VERSION.SDK_INT;
		DBAdapter dbAdapter = new DBAdapter(this);
		dbAdapter.openAndIntiModeManager(DownloadRecordEntityManager.getInstance(), AppInfoEntityManager.getInstance());
	}

}
